﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using X23.Util.DateTimeUtil;

namespace X23.Application.UserManagement.Dto
{
    /// <summary>
    /// Token用户信息
    /// </summary>
    public class UserInfoDto : UserDto
    {
        /// <summary>
        /// Token令牌
        /// </summary>
        public string Token { get; set; }
        /// <summary>
        /// 到期时间
        /// </summary>
        public DateTime ExpiresTime { get; set; }
        /// <summary>
        /// 字符串 到期时间 只读
        /// </summary>
        public string ExpiresTimeStr { get => ExpiresTime.DateTimeToString(); }
    }
}
